import time

from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase = "dbshopST008_查看支付记录"
#打开网址
firefox = openBrowser(urlAdmin)
#登陆
DBshopLoginAdmin(firefox)
#进入二级菜单
DBshopEnterMenu2(firefox, '销售管理', '支付记录')
#点击订单号
firefox.find_element_by_xpath('//table/tbody/tr[1]/td[1]/a').click()
#断言
try:
    firefox.find_element_by_link_text('基本信息')
    writeLog("%s 测试通过" % testCase)
except:
    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)
firefox.quit()
